//
//  NutOpionCell.m
//  WE
//
//  Created by iMacOne on 15/11/24.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "NutOpionCell.h"
#import "Size.h"
#import "ToolUtil.h"
@interface NutOpionCell ()
@property (nonatomic, strong)UIImageView * iconImageV;
@property (nonatomic, strong)UILabel * titleLbl;
@property (nonatomic, strong)UILabel * contentLbl;


@end
@implementation NutOpionCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.titleLbl = [[UILabel alloc] initWithFrame:CGRectMake(20, 10, [ToolUtil autoWidth:@"脖子响怎么回事" width:0 height:20 num:12], 20)];
        _titleLbl.font = FONT(12);
        _titleLbl.text = @"脖子响怎么回事";
        _titleLbl.textColor = [UIColor blueColor];
        self.iconImageV = [[UIImageView alloc] initWithFrame:CGRectMake(WindowWidth - 100, 10, 80, 55)];
        _iconImageV.backgroundColor = DEBUG_CLOLR;
        
        self.contentLbl = [[UILabel alloc] initWithFrame:CGRectMake(20, CGRectGetMaxY(_titleLbl.frame)+5, WindowWidth - 140, 30)];
        _contentLbl.font = FONT(12);
        _contentLbl.text = @"脖子响怎么回事脖子响怎么回事脖子响怎么回事脖子响怎么回事脖子响怎么回事脖子响怎么回事脖子响怎么回事";
        _contentLbl.numberOfLines = 2;
        
        [self.contentView addSubview:_contentLbl];
        [self.contentView addSubview:_titleLbl];
        [self.contentView addSubview:_iconImageV];
        
    }
    return self;
}
@end
